package leo.weixin.entity.menu;

import lombok.Data;

/**
 * 跳转小程序的按钮
 * {
 *                  "type":"miniprogram",
 *                  "name":"wxa",
 *                  "url":"http://mp.weixin.qq.com",
 *                  "appid":"wx286b93c14bbf93aa",
 *                  "pagepath":"pages/lunar/index"
 *              },
 */
@Data
public class MiniProgramButton extends AbstractButton {
    private String url;
    public MiniProgramButton(String name, String url){
        super(name);
        setType(ButtonTypeEnum.VIEW);
        this.url = url ;
    }
}
